package com.code.apollo.utils;

public class JavaTypes {

    /***
     * 根据java.sql.Types的值返回java的类型
     * @param value
     * @return
     */
    public static String getType(int value){
        switch (value){
            case -6:
                return "Integer";
            case 5:
                return "Integer";
            case 4:
                return "Integer";
            case -5:
                return "Long";
            case 6:
                return "Float";
            case 8:
                return "Double";
            case 1:
                return "String";
            case 12:
                return "String";
            case -1:
                return "String";
            case 91:
                return "java.util.Date";
            case 92:
                return "java.util.Date";
            case 93:
                return "java.util.Date";
            case 16:
                return "Boolean";
            default:
                return "String";
        }
    }


}
